#pragma once

#include <sys/types.h>
#include <sys/socket.h>

#include <pthread.h>

#include <ctime>
#include <cstring>

#include <string>
#include <deque>
#include <fstream>
#include <functional>
#include <jsoncpp/json/json.h>

#include "http.hpp"
#include "account.hpp"

#include "log.hpp"
extern Log log;

void http_task(std::string& inbuffer, std::string& outbuffer);
void device_task(std::string& inbuffer, std::string& outbuffer);
